{% extends 'goodies/main2.html' %}
{% block   content %}
<td width="100%">
<div style="width: 0px; height: 11px"><spacer type="block" height="11"></spacer></div>
<!-- text -->
<!--<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="/common/js/check_form.js"></SCRIPT>-->

<span class="zag">Регистрация</span>
<br>
<div id='verify_pass' style='display:none;'align="center">
  <font color="red">
  Уважаемый посетитель, будьте внимательны!<br>
            Введите заново пароль и подтвержение пароля!<br>
          Попробуйте еще раз!<br>
  </font>
  </div>
<br>

    
  <table border="0" cellspacing="10" cellpadding="0">
    <form action="" method="post" name="change" onsubmit="return(CheckMandatoryFields('change'));">{% csrf_token %}
    <tbody><tr>
    <td align="right" class="search" width="200">Фамилия: <font color="red">*</font></td>
    <td><input style="width: 200px;" type="text" name="_nonempty_SURNAME23" value=""></td>
    </tr>
    <tr>
    <td align="right" class="search" width="200">Имя <font color="red">*</font>:</td>
    <td><input style="width: 200px;" type="text" name="_nonempty_NAME23" value=""></td>
    </tr>
    <tr>
    <td align="right" class="search" width="200">Отчество:</td>
    <td><input style="width: 200px;" type="text" name="PATRONYMIC23" value=""></td>
    </tr>
    <tr>
    <td align="right" class="search" width="200">Адрес E-mail <font color="red">*</font>:</td>
    <td><input style="width: 200px;" type="text" name="_nonempty__email_EMAIL23" value=""></td>
    </tr>
    <tr>
    <td align="right" class="search" width="200">Телефон <font color="red">*</font>:</td>
    <td><input style="width: 200px;" type="text" name="_nonempty_TELEPHONE23" value=""></td>
    </tr>
  
          <tr>
      <td align="right" class="search" width="200">Лицо:</td>
      <td>
        <select style="width: 200px;" name="CLIENT_TYPE23" onchange="glue(this.value)">
                <option value="0">физическое</option>
                <option value="1">юридическое</option>
        </select>
      </td>
      </tr>
        <tr>
    <td align="right" class="search" width="200">Пароль <font color="red">*</font>:</td>
    <td><input style="width: 200px;" type="password" name="_nonempty__login_PASSWORD23" value=""></td>
    </tr>
    <tr>
    <td align="right" class="search" width="200">Подтверждение пароля <font color="red">*</font>:</td>
    <td><input style="width: 200px;" type="password" name="_nonempty__login_PASSWORD2_23" onchange='passw()'value=""></td>
    </tr>


    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Наименование организации <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text" value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Юридический адрес <font color="red">*</font>:</td>
      <td><input type="text"  value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">ИНН <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text"  value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Расчетный счет <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text" n value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Наименование банка <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text" value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Корреспондентский счет <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text"  value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">БИК <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text"  value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Код ОКПО <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text"  value=""></td>
    </tr>
    <tr class='bebozgo' style='display:none;'>
      <td align="right" class="search" width="200">Код ОКВЭД <font color="red">*</font>:</td>
      <td><input style="width: 200px;" type="text"  value=""></td>
    </tr>
    
     
    
        
  <tr>
    <td align="center">&nbsp;</td>
    <td><input type="Image" src="/common/img/but/save.gif" width="85" height="21" border="0" alt="сохранить"></td>
  </tr>

      </form>
    </tbody></table>

    
<!-- /text -->
</td>
<script type='text/javascript'>
       
    function glue (x) {
        var decor = ["_nonempty_LEGAL_PERSON23" ,"_nonempty_ADDRESS23","_nonempty__number_INN23","_nonempty__number_R_ACCOUNT23","_nonempty_BANK_NAME23" ,"_nonempty__number_K_ACCOUNT23","_nonempty_BIK23","_nonempty__number_CODE_OKPO23","_nonempty__number_CODE_OKONH23"]

        var bozos = document.getElementsByClassName('bebozgo')
        if (x==0){
          for (var i in bozos){
            bozos[i].style.display = 'none';
            bozos[i].children[1].children[0].name=''}}
        else{
          for (var i in bozos){bozos[i].style.display='';
            bozos[i].children[1].children[0].name=decor[i]}}    
    }

    function passw(){
        pass     = document.getElementsByName("_nonempty__login_PASSWORD23")[0].value;
        r_pass   = document.getElementsByName("_nonempty__login_PASSWORD2_23")[0].value;
        rep_pass = document.getElementById("verify_pass");
        if(pass && r_pass && pass != r_pass ){rep_pass.style.display='';}
        else{rep_pass.style.display='none';}}


</script>
{% endblock content %}

